<?php
/**
 * @package		Joomla.Site
 * @subpackage	mod_login
 * @copyright	Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

// no direct access
defined('_JEXEC') or die;
JHtml::_('behavior.keepalive');
?>
<?php if ($type == 'logout') : ?>
<form action="<?php echo JRoute::_('index.php', true, $params->get('usesecure')); ?>" method="post" id="login-form">
<?php if ($params->get('greeting')) : ?>
	<div class="login-greeting">
	<?php if($params->get('name') == 0) : {
		echo JText::sprintf('MOD_LOGIN_HINAME', htmlspecialchars($user->get('name')));
	} else : {
		echo JText::sprintf('MOD_LOGIN_HINAME', htmlspecialchars($user->get('username')));
	} endif; ?>
	</div>
<?php endif; ?>
	<div class="logout-button">
		<input type="submit" name="Submit" class="button" value="<?php echo JText::_('JLOGOUT'); ?>" />
		<input type="hidden" name="option" value="com_users" />
		<input type="hidden" name="task" value="user.logout" />
		<input type="hidden" name="return" value="<?php echo $return; ?>" />
		<?php echo JHtml::_('form.token'); ?>
	</div>
</form>
<?php else : ?>
<form action="<?php echo JRoute::_('index.php', true, $params->get('usesecure')); ?>" method="post" id="login-form" >

<div class="tal w248 fl pt50" style="margin-left: 140px">
				<table>
					<tr>
						<td colspan="2"><input id="modlgn-username" type="text" name="username" value="<?php echo JText::_('MOD_LOGIN_VALUE_USERNAME') ?>" class="inputbox"  size="18" /> </td>
					</tr>
					<tr>
						<td colspan="2"><input id="modlgn-passwd" type="password" value="Password" name="password" class="inputbox" size="18"  /> </td>
					</tr>
					<tr>
						<td><a href="<?php echo JRoute::_('index.php?option=com_users&view=registration'); ?>" class="cf4"/>Create New Account</a><br>
						<a href="#" class="cf4"/>Help</a></td>
						<td class="tar"><input type="submit" value="Sign In"/></td>
					</tr>
				</table>
</div>


	
	
	
	
	<input type="hidden" name="option" value="com_users" />
	<input type="hidden" name="task" value="user.login" />
	<input type="hidden" name="return" value="<?php echo $return; ?>" />
	<?php echo JHtml::_('form.token'); ?>
	
	
</form>
<?php endif; ?>



